import React from 'react';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import List from '../../../components/list';


export default () => {
  const DATA = [
    {
      title: '版本信息',
      value: global.appInfo.version,
      icon: <FontAwesome name="info-circle" size={20} color="#6666ff" />,
    },
    {
      title: '清理客户数据',
      value: '',
      icon: <FontAwesome name="refresh" size={20} color="#f00" />,
      onPress: () => {
        storage.clearMapForKey('customers');
        storage.remove({
          key: 'smsTemplate'
        });
      }
    },
  ];

  return (
    <List
      data={DATA}
      keyPrefix="system"
      title="系统"
    />
  );
};